'VBScript Registry File created with Reg2VBS v1.5
'v1.0 Coded by Tim Mortimer
'v1.5 Coded by Denis St-Pierre (ottawa, Canada)
'Creation time: 4/8/2012 2:35:15 PM
Option Explicit
Dim objShell
Set objShell = CreateObject("WScript.Shell")

'Add StdRegProv support in case of Binary, Multi_SZ values
Dim strComputer, ArrOfValue, oReg
const HKEY_USERS = &H80000003
const HKEY_LOCAL_MACHINE = &H80000002
const HKEY_CURRENT_USER = &H80000001
const HKEY_CLASSES_ROOT = &H80000000
strComputer = "."
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\default:StdRegProv")	'used for Binary, Multi_SZ values
objShell.RegWrite "HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\", ""
objShell.RegWrite "HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\0\", ""
objShell.RegWrite "HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\0\GPO-ID", "LocalGPO", "REG_SZ"
objShell.RegWrite "HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\0\SOM-ID", "Local", "REG_SZ"
objShell.RegWrite "HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\0\FileSysPath", "C:\\WINDOWS\\System32\\GroupPolicy\\User", "REG_SZ"
objShell.RegWrite "HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\0\DisplayName", "Local Group Policy", "REG_SZ"
objShell.RegWrite "HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\0\GPOName", "Local Group Policy", "REG_SZ"
objShell.RegWrite "HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\0\0\", ""
objShell.RegWrite "HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\0\0\Script", "logoff.vbs", "REG_SZ"
objShell.RegWrite "HKCU\Software\Policies\Microsoft\Windows\System\Scripts\Logoff\0\0\Parameters", "", "REG_SZ"
'Unknown value type"ExecTime"=hex(b):00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
Set objShell = Nothing
WScript.Quit
